<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
    <meta name="Generator" content="editPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">

	<link href="css/administrate_content.css" type="text/css" rel="stylesheet" />
	<link href="css/global.css" type="text/css" rel="stylesheet" />
	
	<script src="public_js/jquery-1.5.1.min.js"></script>
    <title>内容</title>
</head>
<body>
    <div class="con_whole">
        <!-- 内容导航 -->
	    <div class="con_nav">
		    <div class="nav_links">
                <a href="#">180c管理中心</a>
			    <a href="#">基本设置列表</a>
			</div>
			<div class="add">
			    <span></span><a href="adminmenu-add">添加菜单</a>
			</div>
        </div>
		
       <!-- 表格 --> 
       <div id="contab" class="con_tab">           
           <table cellspacing="1" cellpadding="3" width="100%">
		   <col width="80"></col>
		   <col width="200"></col>
		   <col width="100"></col>
		   <col width="*"></col>
		   <col width="100"></col>
		   <col width="200"></col>
		       <tbody>
		           <tr>
			           <th>
			               <a href="">编号</a>
					   </th>
					   <th>
			               <a href="">名称</a>
					   </th>
					   <th>
			               <a href="">上级菜单</a>
					   </th>
					   <th>
			               <a href="">文件路径</a>
					   </th>
					   <th>
			               <a href="">排序</a>
					   </th>
					   <th>
			               <a href="">操作</a>
					   </th>
			       </tr>
			       
			       <?php if (empty($data->menu_list) === FALSE) : ?>
				   <?php foreach($data->menu_list AS $v) : ?>
				   <tr>
				       <td>
					       
			               <span><?php echo $v['id']; ?></span>
					   </td>
					   <td>
			               <span><?php echo $v['name']; ?></span>
					   </td>
					   <td>
					   		<span>顶级菜单</span>
					   </td>
					   <td>
					   	   <span><?php echo $v['filename']; ?></span>
					   </td>
					   <td>
					   		<span><?php echo $v['sort']; ?></span>
					   </td>
					   <td>
					   		<a href="adminmenu-add-id-<?php echo $v['id']; ?>"><img src="public_images/write.gif" width="16" height="16" title="编辑" /></a>
							<a href="adminmenu-api_del-id-<?php echo $v['id']; ?>"><img src="public_images/no.gif" width="16" height="16" title="回收站" /></a>
					   </td>
				   </tr>
				   <?php if (isset($v['child'])) : ?>
						<?php foreach ($v['child'] AS $child) : ?>
							<tr>
						       <td>
							       
					               <span><?php echo $child['id']; ?></span>
							   </td>
							   <td>
					               <span>--<?php echo $child['name']; ?></span>
							   </td>
							   <td>
							   		<span><?php echo $v['name']; ?></span>
							   </td>
							   <td>
							   	   <span><?php echo $child['filename']; ?></span>
							   </td>
							   <td>
							   		<span><?php echo $child['sort']; ?></span>
							   </td>
							   <td>
							   		<a href="adminmenu-add-id-<?php echo $child['id']; ?>"><img src="public_images/write.gif" width="16" height="16" title="编辑" /></a>
									<a href="adminmenu-api_del-id-<?php echo $child['id']; ?>"><img src="public_images/no.gif" width="16" height="16" title="回收站" /></a>
							   </td>
						   </tr>
						<?php endforeach; ?>
					<?php endif; ?>
				   <?php endforeach; ?>
				   <?php endif; ?>
			   </tbody>
		   </table>
       </div>
	   <div class="footer">
	       <p>共执行 4 个查询，用时 0.016487 秒，Gzip 已禁用，内存占用 2.641 MB<br />
           版权所有 © 2011 180c.cn 并保留所有权利。
           </p>
	   </div>
	</div>
</body>
</html>